const app = getApp();

Component({
    /**
     * 组件的一些选项
     */
    options: {
        addGlobalClass: true,
        multipleSlots: true
    },
    data: {
        isPrized: false
    },
    properties: {
        item: Object
    },
    /**
     * 组件的初始数据
     */
    data: {
        isPrized: false,
    },
    /**
     * 组件的方法列表
     */
    methods: {
        toDetials(e) {
            var id = e.currentTarget.dataset.id;
            var url = '/pages/detials/detials' + "?id=" + id
            console.log(this.data.item);
            wx.setStorageSync('currentArticle', this.data.item)
            wx.navigateTo({
                url: url
            })
        }
    },
    lifetimes: {},
    pageLifetimes: {}
})